package com.easondongh.system.service;

import com.easondongh.system.domain.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easondongh.common.vo.BasePageQueryVo;
import com.easondongh.common.vo.PageResult;
import com.easondongh.system.vo.UserDispatchVo;
import com.easondongh.system.vo.UserQueryVo;

import java.util.List;

/**
 * @author EasonDongH
 * @date 2020/4/28 16:07
 */
public interface SysUserService extends IService<SysUser>{

    /**
     * 通根据登录名获取用户
     * @param loginName
     * @return
     */
    public SysUser queryUserByLoginName(String loginName);

    PageResult<SysUser> getByPage(BasePageQueryVo<UserQueryVo> queryVo);

    void dispatchRole(UserDispatchVo dispatchVo);

    List<Integer> getRoles(Integer uid);

    boolean removeById(Integer id);

    Integer getMaxOrderNum();

    void updateAvatar(Integer id, String url);
}
